\lstset{
  language=C++,
  basicstyle=\ttfamily,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{red}\ttfamily,
  commentstyle=\color{gray}\ttfamily,
  basewidth=0.5em,
  basicstyle=\linespread{0.9}\ttfamily,
  columns=fullflexible,
  breaklines=true
}

\inputbody{final/sections/chapter2}
\inputbody{final/sections/chapter3}
\inputbody{final/sections/chapter4}
\inputbody{final/sections/chapter5}
\inputbody{final/sections/chapter6}
